package com.yml.mall.category.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @ClassName AddCategoryDTO
 * @Author Administrator
 * @Date 2020/4/9   16:15
 */
@Data
@AllArgsConstructor
@EqualsAndHashCode
public class CategoryInsertDTO {

    //可为空默认为0 即根目录
    @NotBlank
    @ApiModelProperty(value = "父类ID" ,required = true)
    private Integer parentId;

    @NotBlank
    @ApiModelProperty(value = "类目名字" ,required = true)
    private String name;

    @ApiModelProperty(value = "排序")
    private Integer sortOrder;
}
